//
// Created by wze-zero on 2024/7/15 015.
//
#include<iostream>

using namespace std;

void reverseStr(string &str) {
    int len = str.length();
    for (int i = 0, j = len - 1; i <= len / 2 && j >= len / 2; ++i, --j) {
        char c = str.at(i);
        str.at(i) = str.at(j);
        str.at(j) = c;
    }
}

int main() {
    string s;
    getline(cin, s);
    reverseStr(s);
    cout << s << endl;
    return 0;
}